import {
	post
} from './http.js'

export function page(count, arr) {
	let l = arr.length
	let p = arr.length / count
}

export function guest() {
	let guest = uni.getStorageSync('guest')
	let time = (new Date()).getTime()
	if (guest) {
		if (time - guest >= 86400000) {
			uni.setStorageSync('guest', time)
		}
	} else {
		uni.setStorageSync('guest', time)
	}
}

// function logGuest() {
// 	post('')
// }


/**
 *  百度站长统计
 * */
export function baiduLog() {
	var _hmt = _hmt || [];
	(function() {
		var hm = document.createElement("script");
		hm.src = "https://hm.baidu.com/hm.js?8d6c19ea60824930d2746cbb3af1cc56";
		var s = document.getElementsByTagName("script")[0];
		s.parentNode.insertBefore(hm, s);
	})();
}
